<html>
<head>
    <script type="text/javascript" src="../1.0/src/date.core.js"></script>
    <script type="text/javascript" src="../1.0/src/date.field.js"></script>
    <script type="text/javascript" src="../1.0/src/date.field.year.js"></script>
    <script type="text/javascript" src="../1.0/src/date.field.month.js"></script>
    <script type="text/javascript" src="../1.0/src/date.field.dayOfMonth.js"></script>
    <script type="text/javascript" src="../1.0/src/date.field.hour.js"></script>
    <script type="text/javascript" src="../1.0/src/date.field.minute.js"></script>
    <script type="text/javascript" src="../1.0/src/date.field.second.js"></script>
    <script type="text/javascript" src="../1.0/src/date.field.millisecond.js"></script>

    <script type="text/javascript" src="../1.0/src/date.field.dayOfWeek.js"></script>
    <script type="text/javascript" src="../1.0/src/date.field.weekOfYear.js"></script>
    <script type="text/javascript" src="../1.0/src/date.field.weekOfMonth.js"></script>
    <script type="text/javascript" src="../1.0/src/date.timezone.js"></script>
    <script type="text/javascript" src="../1.0/src/date.timezone.CET.js"></script>
    <script type="text/javascript" src="../1.0/src/date.calendar.js"></script>
    <script type="text/javascript" src="../1.0/src/date.formatter.js"></script>

    <script type="text/javascript" src="test.js"></script>
    <script type="text/javascript" src="test.date.field.year.js"></script>
    <script type="text/javascript" src="test.date.field.month.js"></script>
    <script type="text/javascript" src="test.date.field.dayOfMonth.js"></script>
    <script type="text/javascript" src="test.date.field.hour.js"></script>
    <script type="text/javascript" src="test.date.field.minute.js"></script>
    <script type="text/javascript" src="test.date.field.second.js"></script>
    <script type="text/javascript" src="test.date.field.millisecond.js"></script>

    <script type="text/javascript" src="test.date.field.dayOfWeek.js"></script>
    <script type="text/javascript" src="test.date.field.weekOfYear.js"></script>
    <script type="text/javascript" src="test.date.field.weekOfMonth.js"></script>
    <script type="text/javascript" src="test.date.timezone.js"></script>
    <script type="text/javascript" src="test.date.calendar.js"></script>
    <script type="text/javascript" src="test.date.calendar.CET.js"></script>
    <script type="text/javascript" src="test.date.formatter.js"></script>

    <link href="index.css" media="screen" rel="stylesheet" type="text/css">
</head>
<body onload="run();">
<ul id="root"></ul>
<script type="text/javascript">
    function runNumber() {
        startTimer();

	    var count = 1000;
		
		while (--count !== 0) {
		    new Date().calendar().withYear(100).withMonth(10).withSecondOfMinute(10).withHourOfDay(10).withDayOfWeek(1).time();
		}

        append("root", "Finished in " + stopTimer() + "ms");
	}
	
    function run() {
		startTimer();
		
        runSuite("DateTime.Field.Year.Test", DateTime.Field.Year.Test);
        runSuite("DateTime.Field.Month.Test", DateTime.Field.Month.Test);
        runSuite("DateTime.Field.Date.Test", DateTime.Field.DaysOfMonth.Test);
        runSuite("DateTime.Field.Hour.Test", DateTime.Field.Hour.Test);
        runSuite("DateTime.Field.Minute.Test", DateTime.Field.Minute.Test);
        runSuite("DateTime.Field.Second.Test", DateTime.Field.Second.Test);
        runSuite("DateTime.Field.Millisecond.Test", DateTime.Field.Millisecond.Test);

        runSuite("DateTime.Field.Day.Test", DateTime.Field.DaysOfWeek.Test);
        runSuite("DateTime.Field.WeekOfYear.Test", DateTime.Field.WeekOfYear.Test);
        runSuite("DateTime.Field.WeekOfMonth.Test", DateTime.Field.WeekOfMonth.Test);
        runSuite("DateTime.TimeZone.Test", DateTime.TimeZone.Test);
        runSuite("DateTime.Calendar.Test", DateTime.Calendar.Test);
        runSuite("DateTime.Calendar.Test.CET", DateTime.Calendar.Test.CET);
        runSuite("DateTime.Formatter.Test", DateTime.Formatter.Test);

        append("root", "Finished in " + stopTimer() + "ms");
    }
</script>
</body>
</html>